package com.tom.architect02.zframework.wms.skin.higher_lib;
import android.app.Application;
import com.tom.architect02.zframework.wms.skin.higher_lib.utils.SkinManager;


public class MyApplication extends Application {

    private MyApplicationLifecycle myApplicationLifecycle;

    private static MyApplication myApplication = null;

    public static MyApplication getApplication() {
        return myApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;
        SkinManager.getInstance().init(this);
        myApplicationLifecycle = new MyApplicationLifecycle(); // app生命周期。
//        registerActivityLifecycleCallbacks(myApplicationLifecycle);
    }

    public MyApplicationLifecycle getMyApplicationLifecycle() {
        return myApplicationLifecycle;
    }
}
